package com.nengchuan.eic.nceconomy.entity.dto;

import com.nengchuan.model.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @description: 三维测算目录分页查询DTO
 * @author: panwen
 * @create: 2020/05/25 11:22
 * @version：1.0.0
 */
@ApiModel
@Data
public class SwDirectoryPageDTO extends PageDTO implements Serializable {

    @ApiModelProperty("父ID,非必传")
    @Min(value = 1,message = "ID不能小于1")
    private Long parentId;

    @ApiModelProperty("名称")
    @Length(max =32,message = "长度不能超过32")
    private String dirName;
}
